Application.CancelClose Event

Returns a Boolean. This event occurs when the application is about to terminate.

Syntax

result = CancelClose( )


Return Value

Result

Boolean


Notes

It occurs prior to all of the CancelClose events for each Window. It gives you the chance to cancel the application's termination. Return True to cause the termination to stop.